//
// Created by Administrator on 2021/8/8.
//

#ifndef STRUCTVIEW_VIEWINTERFACE_H
#define STRUCTVIEW_VIEWINTERFACE_H

namespace details {
    class ViewInterface {
    public:
        virtual auto build() -> void = 0;
        virtual auto equal() -> bool = 0;
        virtual auto add_children(ViewInterface*) -> void {}
        virtual ~ViewInterface() = default;
    };
}

#define __append_view__(child) view->add_children(child)

#endif //STRUCTVIEW_VIEWINTERFACE_H
